﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using StudyEnglish.Model;
using StudyEnglish.Models;
using StudyEnglish.Service;

namespace StudyEnglish.Application.Service
{
    public class AppService
    {
        //------------------- Dictionary factory
        public static DictionaryModel CreateDictionaryModel()
        {
            return new DictionaryModel(DataService.Dictionary.FindAllItems());
        }

        public static IList<EDictType> GetDictTypes()
        {
            return new List<EDictType>() {EDictType.Level, EDictType.Category, EDictType.SubCategory, EDictType.Topic, EDictType.Type};
        }
    }
}